package day01.arrayutil;

import java.util.ArrayList;

public class StudentUtil {
    private StudentUtil(){}
public static int getMaxAgeStudent(ArrayList<Student> list){
        int max=list.get(0).getAge();
    for (int i = 1; i < list.size(); i++) {
        int tempAge = list.get(i).getAge();
        if(max<tempAge){
             max=tempAge;
         }
    }
    return 0;
}
}
